﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace gnet1.Models
{
    public class ContactsModel
    {

        public int ID { get; set; } 

        [Required]
        [DataType(DataType.Text)]
        [StringLength(20, ErrorMessage = "The First Name value cannot exceed 20 characters. ")]
        [Display(Name = "First Name")]
        public string FirstName { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(25, ErrorMessage = "The Last Name value cannot exceed 25 characters. ")]
        [Display(Name = "Last Name")]
        public string LastName { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(100, ErrorMessage = "The Address value cannot exceed 100 characters. ")]
        [Display(Name = "Address")]
        public string Address { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(32, ErrorMessage = "The City value cannot exceed 32characters. ")]
        [Display(Name = "City")]
        public string City { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(32, ErrorMessage = "The State or Province value cannot exceed 32 characters. ")]
        [Display(Name = "State or Province")]
        public string State { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(20, ErrorMessage = "The Postal Code value cannot exceed 32 characters. ")]
        [Display(Name = "Postal Code")]
        public string PostalCode { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [StringLength(32, ErrorMessage = "The Country value cannot exceed 32 characters. ")]
        [Display(Name = "Country")]
        public string Country { get; set; }

        [DataType(DataType.EmailAddress)]
        [StringLength(128, ErrorMessage = "The Email Address value cannot exceed 128 characters. ")]
        [Display(Name = "Email Address")]
        public string EmailAddress { get; set; }

        [DataType(DataType.Text)]
        [StringLength(1000, ErrorMessage = "The Comment value cannot exceed 1000 characters. ")]
        [Display(Name = "Comments")]
        public string Comments { get; set; }   

        public DateTime ContactDate { get; set; } 
    }
}